Optimal. Leaf size=42 \[ -\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} (a+b)}-\frac{\tanh ^{-1}(\cosh (x))}{a+b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0622791, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {3190, 391, 206, 205} \[ -\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} (a+b)}-\frac{\tanh ^{-1}(\cosh (x))}{a+b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 391
Rule 206
Rule 205
Rubi steps
\begin{align*} \int \frac{\text{csch}(x)}{a+b \cosh ^2(x)} \, dx &=-\operatorname{Subst}\left (\int \frac{1}{\left (1-x^2\right ) \left (a+b x^2\right )} \, dx,x,\cosh (x)\right )\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cosh (x)\right )}{a+b}-\frac{b \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,\cosh (x)\right )}{a+b}\\ &=-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} (a+b)}-\frac{\tanh ^{-1}(\cosh (x))}{a+b}\\ \end{align*}
Mathematica [C] time = 0.135437, size = 99, normalized size = 2.36 \[ \frac{-\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b}-i \sqrt{a+b} \tanh \left (\frac{x}{2}\right )}{\sqrt{a}}\right )-\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b}+i \sqrt{a+b} \tanh \left (\frac{x}{2}\right )}{\sqrt{a}}\right )+\sqrt{a} \log \left (\tanh \left (\frac{x}{2}\right )\right )}{\sqrt{a} (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 52, normalized size = 1.2 \begin{align*}{\frac{1}{a+b}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) }-{\frac{b}{a+b}\arctan \left ({\frac{1}{4} \left ( 2\, \left ( a+b \right ) \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,a+2\,b \right ){\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{\log \left (e^{x} + 1\right )}{a + b} + \frac{\log \left (e^{x} - 1\right )}{a + b} - 2 \, \int \frac{b e^{\left (3 \, x\right )} - b e^{x}}{a b + b^{2} +{\left (a b + b^{2}\right )} e^{\left (4 \, x\right )} + 2 \,{\left (2 \, a^{2} + 3 \, a b + b^{2}\right )} e^{\left (2 \, x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.08679, size = 1085, normalized size = 25.83 \begin{align*} \left [\frac{\sqrt{-\frac{b}{a}} \log \left (\frac{b \cosh \left (x\right )^{4} + 4 \, b \cosh \left (x\right ) \sinh \left (x\right )^{3} + b \sinh \left (x\right )^{4} - 2 \,{\left (2 \, a - b\right )} \cosh \left (x\right )^{2} + 2 \,{\left (3 \, b \cosh \left (x\right )^{2} - 2 \, a + b\right )} \sinh \left (x\right )^{2} + 4 \,{\left (b \cosh \left (x\right )^{3} -{\left (2 \, a - b\right )} \cosh \left (x\right )\right )} \sinh \left (x\right ) - 4 \,{\left (a \cosh \left (x\right )^{3} + 3 \, a \cosh \left (x\right ) \sinh \left (x\right )^{2} + a \sinh \left (x\right )^{3} + a \cosh \left (x\right ) +{\left (3 \, a \cosh \left (x\right )^{2} + a\right )} \sinh \left (x\right )\right )} \sqrt{-\frac{b}{a}} + b}{b \cosh \left (x\right )^{4} + 4 \, b \cosh \left (x\right ) \sinh \left (x\right )^{3} + b \sinh \left (x\right )^{4} + 2 \,{\left (2 \, a + b\right )} \cosh \left (x\right )^{2} + 2 \,{\left (3 \, b \cosh \left (x\right )^{2} + 2 \, a + b\right )} \sinh \left (x\right )^{2} + 4 \,{\left (b \cosh \left (x\right )^{3} +{\left (2 \, a + b\right )} \cosh \left (x\right )\right )} \sinh \left (x\right ) + b}\right ) - 2 \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + 2 \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right )}{2 \,{\left (a + b\right )}}, -\frac{\sqrt{\frac{b}{a}} \arctan \left (\frac{1}{2} \, \sqrt{\frac{b}{a}}{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}\right ) - \sqrt{\frac{b}{a}} \arctan \left (\frac{{\left (b \cosh \left (x\right )^{3} + 3 \, b \cosh \left (x\right ) \sinh \left (x\right )^{2} + b \sinh \left (x\right )^{3} +{\left (4 \, a + b\right )} \cosh \left (x\right ) +{\left (3 \, b \cosh \left (x\right )^{2} + 4 \, a + b\right )} \sinh \left (x\right )\right )} \sqrt{\frac{b}{a}}}{2 \, b}\right ) + \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) - \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right )}{a + b}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{csch}{\left (x \right )}}{a + b \cosh ^{2}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]